﻿namespace SweeperPrototype.Business.Fields
{
    public class EffectiveRIC : RIC
    {
        public EffectiveRIC(string value) : base(value) { }

        public bool Equals(EffectiveRIC other)
        {
            return base.Equals(other);
        }

        public static bool operator ==(EffectiveRIC lhs, EffectiveRIC rhs)
        {
            if (ReferenceEquals(null, lhs)) return false;
            if (ReferenceEquals(null, rhs)) return false;

            return lhs.Value == rhs.Value;
        }

        public static bool operator !=(EffectiveRIC lhs, EffectiveRIC rhs)
        {
            return !(lhs == rhs);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            return Equals(obj as EffectiveRIC);
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}